package com.jrzh.db.migration.sys;

import com.eroi.migrate.Define.DataTypes;
import com.jrzh.framework.migration.BaseMigration;
import com.jrzh.framework.migration.MigrationHelper;

public class Migration_13 extends BaseMigration{
	private static final String TABLE_NAME = "sys_users";
	@Override
	public void down() {
		MigrationHelper.dropColumn("_url", TABLE_NAME);
		MigrationHelper.dropColumn("_type", TABLE_NAME);
	}

	@Override
	public void up() {
		log.info("##########回滚Sys模块 Migration_13##########");
		addColumn(TABLE_NAME, "_url", "头像路径", DataTypes.VARCHAR, 512);
		addColumn(TABLE_NAME, "_type", "头像类型", DataTypes.VARCHAR, 32);
	}

}
